﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateFindFamily.aspx.cs" Inherits="Users_UpdateFindFamily" %>
<%@ Register assembly="DotNetTextBox" namespace="DotNetTextBox" tagprefix="DNTB" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <asp:PlaceHolder Visible="false" runat="server">
         <script src="../Script/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>
    </asp:PlaceHolder>
    <%=this.UI_Head(Base_CurrPath, "", "")%>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />
    <script src="../Script/formValidator/jquery_last.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidator.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidatorRegex.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/formValidator/DateTimeMask.js" type="text/javascript"></script>
    <script src="../Script/ConvertTime.js" type="text/javascript"></script> 
    <script src="../Script/province.aspx"></script>
    <script src="../Script/popup.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $.formValidator.initConfig({ alertmessage: false, formid: "FindFamily_Form", onerror: function(msg) { alert(msg) } });
            $("#Find_Title").formValidator({ tipid: "TitleTip", onshow: "请输入标题", onfocus: "标题不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "标题两边不能有空符号" }, onerror: "标题长度必须在1-100,请确认" });
            $("#txtPreName").formValidator({ tipid: "UserNameCheckTip", onshow: "请输入失踪人姓", onfocus: "失踪人姓不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 5, empty: { leftempty: false, rightempty: false, emptyerror: "失踪人姓两边不能有空符号" }, onerror: "失踪人姓长度必须在1-5位,请确认" });
            $("#txtPostfixName").formValidator({ tipid: "UserNameCheckTip", onshow: "请输入失踪人名", onfocus: "失踪人名不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 5, empty: { leftempty: false, rightempty: false, emptyerror: "失踪人名两边不能有空符号" }, onerror: "失踪人名长度必须在1-5位,请确认" });
            $("#Txt_otherName").formValidator({ empty: true, tipid: "Txt_otherNameTip", onshow: "请输入失踪人别名", onfocus: "失踪人别名为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 10, empty: { leftempty: false, rightempty: false, emptyerror: "失踪人别名两边不能有空符号" }, onerror: "失踪人别名长度必须在1-10位,请确认" });
            $("#txtAge").formValidator({ tipid: "txtAgeTip", onshow: "请输入年龄", onfocus: "年龄不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 3, empty: { leftempty: false, rightempty: false, emptyerror: "年龄两边不能有空符号" }, onerror: "年龄长度必须在1-3位,请确认" });
            $("#Txt_birthyear").formValidator({ tipid: "Txt_birthyearTip", onshow: "请输入出生年月", onfocus: "出生年月不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "出生年月两边不能有空符号" }, onerror: "出生年月长度必须在1-50位,请确认" });
            $("#txtLostPlace").formValidator({ tipid: "txtLostPlaceTip", onshow: "请输入失踪地", onfocus: "失踪地不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "失踪地两边不能有空符号" }, onerror: "失踪地长度必须在1-40位,请确认" });
            $("#txtCountry").formValidator({ empty: true, tipid: "txtCountryTip", onshow: " ", onfocus: "国家为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "国家两边不能有空符号" }, onerror: "国家长度必须在1-20位,请确认" });
            $("#Txt_Race").formValidator({ empty: true, tipid: "Txt_RaceTip", onshow: "请输入民族", onfocus: "民族为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "民族两边不能有空符号" }, onerror: "民族长度必须在1-20位,请确认" });
            $("#Txt_place").formValidator({ empty: true, tipid: "Txt_placeTip", onshow: "请输入籍贯", onfocus: "籍贯为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "籍贯两边不能有空符号" }, onerror: "籍贯长度必须在1-20位,请确认" });
            $("#Txt_Occu").formValidator({ empty: true, tipid: "Txt_OccuTip", onshow: "请输入职业", onfocus: "职业为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "职业两边不能有空符号" }, onerror: "职业长度必须在1-15位,请确认" });
            $("#txtPhone").formValidator({ tipid: "txtPhoneTip", onshow: "请输入联系电话", onfocus: "联系电话不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "联系电话两边不能有空符号" }, onerror: "联系电话长度必须在1-50位,请确认" });
            $("#txtTelephone").formValidator({ empty: true, tipid: "txtTelephoneTip", onshow: "请输入手机号码", onfocus: "手机号码为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "手机号码两边不能有空符号" }, onerror: "手机号码长度必须在1-50位,请确认" });
            $("#txtEmail").formValidator({ empty: true, tipid: "txtEmailTip", onshow: "请输入邮箱", onfocus: "邮箱为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "邮箱两边不能有空符号" }, onerror: "邮箱长度必须在1-10位,请确认" });
            $("#txtQQ").formValidator({ empty: true, tipid: "txtQQTip", onshow: "请输入QQ", onfocus: "QQ为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 100, empty: { leftempty: false, rightempty: false, emptyerror: "QQ两边不能有空符号" }, onerror: "QQ长度必须在1-30位,请确认" });
            $("#txtContactAddress").formValidator({ tipid: "txtContactAddressTip", onshow: "请输入联系地址", onfocus: "联系地址不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 200, empty: { leftempty: false, rightempty: false, emptyerror: "联系地址内容两边不能有空符号" }, onerror: "联系地址长度必须在1-40位,请确认" });
            $("#WebEditor1").formValidator({ tipid: "divIntroductionTip", onshow: "请输入失踪人信息", onfocus: "失踪人信息不能为空", oncorrect: "输入正确" }).inputValidator({ empty: { leftempty: false, rightempty: false, emptyerror: "失踪人信息内容两边不能有空符号" }, onerror: "失踪人信息不能为空,请确认" });
           
            var speed = 500;

            $(":checkbox[name='picThumb']").click(function(event) {

                //取消事件冒泡
                event.stopPropagation();
                //设置弹出层位置
                var offset = $(event.target).offset();
                $("#divPop").css({ top: offset.top - $("#divPop").height() + $(event.target).height() + "px", left: offset.left + 50 + $(event.target).height() });
                //切换弹出层的显示状态
                $("#divPop").toggle(speed);
                if ($("#Txt_UpImg")[0].value != "") {
                    $("#ThumbImg").attr("src", "../" + $("#Txt_UpImg").val());
                }
                else {
                    $("#ThumbImg").attr("src", "../images/nopic.jpg");

                }
            });        
        
        
        });
    </script>
</head>
<body>
<form id="FindFamily_Form" runat="server">
    <%=this.UI_TopControl()%>
    <div class="topbanner bodyList">
        <div class="body_995">
            <div class="Member_left">
                <%=this.UI_Users_loginOK()%>
                <%=this.UI_UsersDhtList() %>
            </div>
            <div class="Member_Right">
                <div class="Member_right_dht">
                    <img src="../Images/class_hy.jpg" /></div>
                <div class="Member_right_CntLIst">
           
           
           
<table cellpadding="0" cellspacing="0" border="0" width="100%" align=center>

  <tr>
	<td height="25" align="center" bgcolor="#E3DEBE" class="title"><strong>海内外寻亲</strong></TD>
    </tr>
    <tr align="center" class="tdbg" > 
      <td height="40">
            
             <asp:Panel ID="Panel2" runat="server" Visible="true" >    
                <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
<tr>
            <td width="18%" align="center" style="padding:4px;" ><strong>标题:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"class="tdIndiv"  ><div><asp:TextBox ID="Find_Title"  MaxLength="100"
                    runat="server" Width="162px"></asp:TextBox></div> <DIV  id="TitleTip" ></Div></td></tr>
                
                
                
                     <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>失踪人:		</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div>姓:<asp:TextBox ID="txtPreName" 
                    runat="server" MaxLength="10" Width="66px"></asp:TextBox><br />名:<asp:TextBox 
                    ID="txtPostfixName" runat="server" MaxLength="15" Width="143px"></asp:TextBox>
               </div>
                <div id="UserNameCheckTip" class="red_FF Black_A">*</div></td></tr>
               
                        <tr>
            <td width="18%" align="center" style="padding:4px;" ><strong>失踪人别名:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"class="tdIndiv"  ><div><asp:TextBox ID="Txt_otherName"  MaxLength="30"
                    runat="server" Width="162px"></asp:TextBox></div> <DIV  id="Txt_otherNameTip" ></Div></td></tr>
                
             
                      <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>性别:		</strong></td>
            <td width="82%" align="left" style="padding:4px;">
                <asp:RadioButtonList ID="Radio_Sex" runat="server">
                </asp:RadioButtonList>
                          </td></tr>
               <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>年龄:		</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div><asp:TextBox ID="txtAge" runat="server"></asp:TextBox></div>
                <div  id="txtAgeTip" class="red_FF Black_A">*</div></td></tr>
                      <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>出生年月:</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" >
            <div><asp:TextBox ID="Txt_birthyear" runat="server"></asp:TextBox><asp:DropDownList
                ID="DD_TimeType" runat="server">
            </asp:DropDownList>
                </div><div id="Txt_birthyearTip red_FF" class="red_FF">*</div>
              
            </td></tr>
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>失踪地:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><asp:TextBox ID="txtLostPlace" runat="server"></asp:TextBox></div><div id="txtLostPlaceTip" class="red_FF">*</div>
            </td></tr>         
                    <tr>
            
                      <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>国家:		</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div><asp:TextBox ID="txtCountry" runat="server"></asp:TextBox></div>
                <div  id="txtCountryTip" class="red_FF Black_A"></div></td></tr>
                      <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>民族:		</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div><asp:TextBox ID="Txt_Race" runat="server"></asp:TextBox></div>
                <div  id="Txt_RaceTip" class="red_FF Black_A"></div></td></tr>
               
                      <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>籍贯:		</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div><asp:TextBox ID="Txt_place" MaxLength="10" runat="server"></asp:TextBox></div>
                <div  id="Txt_placeTip"class="red_FF Black_A"></div></td></tr>
               
                      <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>职业:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><asp:TextBox ID="Txt_Occu" runat="server"></asp:TextBox></div><div id="Txt_OccuTip"></div></td></tr>
               
                      
            <td width="18%" align="center" style="padding:4px;"><strong>联系电话:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></div><div id="txtPhoneTip" class="red_FF">*</div>
            </td></tr>   
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>手机:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><asp:TextBox ID="txtTelephone" runat="server"></asp:TextBox></div><div id="txtTelephoneTip"></div>
            </td></tr>
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>邮箱:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></div><div id="txtEmailTip"></div>
            </td></tr>
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>QQ:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><asp:TextBox ID="txtQQ" runat="server"></asp:TextBox></div><div id="txtQQTip"></div>
            </td></tr>
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>联系地址:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><asp:TextBox ID="txtContactAddress" runat="server"></asp:TextBox></div><div id="txtContactAddressTip" class="red_FF">*</div>
            </td></tr>
            <tr>
             <tr>
              <td align="center" style="padding:4px;" width="18%">
                 <strong>失踪者照片:		</strong></td>
              <td align="left" style="padding:4px;" width="82%"><asp:TextBox ID="Txt_UpImg" 
                      runat="server" Width="265px" Text="images/nopic.jpg" ></asp:TextBox>&nbsp;<input type="button" class="go-wenbenkuang" value="上传图片" onclick="javascript:wy_addPhotoCat('../App/UploadFindFamily.aspx?inputobj=Txt_UpImg','失踪者照片上传',500,200)"  />&nbsp;<input type="checkbox" id="picThumb" name="picThumb"/>预览照片</td>
            </tr>
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>背景音乐:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><span id="spanSet" style='<%=notSet %>;color:red;' >未设置</span><embed style="<%=play %>" id="enMusicPath" src='<%=musicPath %>' width='170' height='28' AUTOSTART='false'></embed><asp:DropDownList ID="ddlMusic" runat="server" />&nbsp;<asp:Button Text="设置"  OnClick="btnMusic_Click"  CssClass="go-wenbenkuang"  ID="btnMusic" runat="server" />
            </td></tr>   
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>失踪人信息:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><DNTB:WebEditor ID="WebEditor1" runat="server" /><div id="divIntroductionTip" class="red_FF" >*</div>  
            </td></tr>   
            <td width="18%" align="center" style="padding:4px;"><strong>模板选择:		</strong></td>
            <td width="82%" align="left" style="padding:4px;" id="TemplateParentCSS"><%=templateBLL.EditTemplateList(AspNetCs.Enumerations.Channel_Enum.Channel_Type.FindFamily, 0, (int)Base_GetUserInfo.Point, this.TempleId)%></td></tr>

<%--              <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>背景音乐:		</strong></td>
            <td width="82%" align="left" style="padding:4px;">&nbsp;
                        <asp:DropDownList ID="ddlMusic" runat="server">
                            <asp:ListItem Value="0" >吻别</asp:ListItem>
                            <asp:ListItem Value="1">再爱我一次</asp:ListItem>
                        </asp:DropDownList></td></tr>--%>
                    <tr>
                        <td align="center" style="padding:4px;" width="18%">
                            &nbsp;</td>
                        <td align="left" style="padding:4px;" width="82%">
                            <asp:Button ID="btnCreate" runat="server" Text="立即保存" 
                                onclick="btnCreate_Click" />
                        </td>
                    </tr>

              
                </table>
                 
             </asp:Panel>
            
            
                    
                    
                </td>
                    </tr>
    </table>   
           
           
           
           
                    
                </div>
            </div>
        </div>
        <br />
    </div>    
    <!-- 弹出层 -->
    <div id="divPop" style="position: absolute; display:none;
        width: 107px; height: 145px;">
        <div style="text-align: center;">
            <img src="../images/nopic.jpg"  id="ThumbImg" onload="javascript:DrawImage(this,107,145);" />
        </div>
    </div>
    
     <!-- 弹出层 -->
    <div id="divPopTwo" style="position: absolute; display:none;
        width: 107px; height: 145px;">
        <div style="text-align: center;">
            <img src="../images/nopic.jpg"  id="ThumbImgTwo" onload="javascript:DrawImage(this,107,145);" />
        </div>
    </div>
    
    
</form>   
</body>
</html>

